#pragma strict

//////////////////////////////////////////////////////
///动画播放完毕,销毁
//////////////////////////////////////////////////////

function Start () {
	if(animation){
		animation.Play(animation.clip.name);
		yield WaitForSeconds(animation.clip.length);
	}
	Destroy(gameObject);
}